]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
padOsd: Fix menu animations
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 29 May 2026 15:30:32 +0000 (17:30 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 3 Jul 2026 18:03:28 +0000 (18:03 +0000)
Like outlined in the previous commit, `true` is interpreted as
`PopupAnimation.SLIDE`, while we want the full animation with
both slide and fade here.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4237>

js/ui/padOsd.js

index 713aab349f923742429a8921ae2185cb36c9f844..04a160cb3a92c2989834c321876051e0ba59e534 100644 (file)
@@ -12,6 +12,7 @@ import St from 'gi://St';
 import * as Signals from '../misc/signals.js';
 
 import * as Main from './main.js';
+import {PopupAnimation} from './boxpointer.js';
 import * as PopupMenu from './popupMenu.js';
 import * as Layout from './layout.js';
 
@@ -49,11 +50,11 @@ const PadChooser = GObject.registerClass({
     vfunc_clicked() {
         if (this.get_checked()) {
             if (this._padChooserMenu != null)
-                this._padChooserMenu.open(true);
+                this._padChooserMenu.open(PopupAnimation.FULL);
             else
                 this.set_checked(false);
         } else {
-            this._padChooserMenu.close(true);
+            this._padChooserMenu.close(PopupAnimation.FULL);
         }
     }
 
@@ -181,7 +182,7 @@ const ActionComboBox = GObject.registerClass({
     }
 
     popup() {
-        this._editMenu.open(true);
+        this._editMenu.open(PopupAnimation.FULL);
     }
 
     popdown() {